<?php

namespace app\api\controller;
use app\model\AgreementModel;
use think\App;


class Agreement extends Base {

    private $agreementModel;

    public function __construct(App $app)
    {
        parent::__construct($app);

        $this->agreementModel  = new AgreementModel();
    }

    /*
     * 发送验证码
     *
     * */
    public function getAgreement(){

        $content = $this->agreementModel->getInfo(1);

        return $this->succ($content['agreement_content']);
    }

}